#ifndef CVUTIL_H
#define CVUTIL_H

#include <QObject>
#include <QUrl>
#include <QByteArray>
#include <QDateTime>

#include "cvsession.h"
#include "model/cvnetwork.h"
#include "widgets/cvtabwidget.h"
class CVUtil : public QObject
{
    Q_OBJECT
public:
    virtual ~CVUtil();
    
    //static QString getBaseUrl(const QString method);
    static QUrl getBaseUrl(const QString method, QString networkUrl = "");
    static QString prettyTime(const QString &timestamp);
    static CVTabWidget *getTabWidget(QWidget *widget);
    static QString filterString(QString str);
signals:
    
public slots:
private:
    CVUtil();
};

#endif // CVUTIL_H
